package cn.edu.scau.cmi.pengzhijie.sington;

public class Marshal {
	private static Marshal instance;
	private static int count = 0;
	private String name;
	private Marshal(String name) {
		this.name = name;
	}
	public String getName() {
		return name;
	}
	public static Marshal getInstance(String name) {
		if(!name.equals(null)&&instance.count<10) {
			instance = new Marshal(name);
			instance.count++;
		}
		return instance;
	}
}
